Optimal. Leaf size=56 \[ \frac{\tanh (e+f x) \sqrt{a \cosh ^2(e+f x)}}{f}-\frac{\text{csch}(e+f x) \text{sech}(e+f x) \sqrt{a \cosh ^2(e+f x)}}{f} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.113688, antiderivative size = 56, normalized size of antiderivative = 1., number of steps used = 5, number of rules used = 4, integrand size = 25, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.16, Rules used = {3176, 3207, 2590, 14} \[ \frac{\tanh (e+f x) \sqrt{a \cosh ^2(e+f x)}}{f}-\frac{\text{csch}(e+f x) \text{sech}(e+f x) \sqrt{a \cosh ^2(e+f x)}}{f} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3176
Rule 3207
Rule 2590
Rule 14
Rubi steps
\begin{align*} \int \coth ^2(e+f x) \sqrt{a+a \sinh ^2(e+f x)} \, dx &=\int \sqrt{a \cosh ^2(e+f x)} \coth ^2(e+f x) \, dx\\ &=\left (\sqrt{a \cosh ^2(e+f x)} \text{sech}(e+f x)\right ) \int \cosh (e+f x) \coth ^2(e+f x) \, dx\\ &=-\frac{\left (i \sqrt{a \cosh ^2(e+f x)} \text{sech}(e+f x)\right ) \operatorname{Subst}\left (\int \frac{1-x^2}{x^2} \, dx,x,-i \sinh (e+f x)\right )}{f}\\ &=-\frac{\left (i \sqrt{a \cosh ^2(e+f x)} \text{sech}(e+f x)\right ) \operatorname{Subst}\left (\int \left (-1+\frac{1}{x^2}\right ) \, dx,x,-i \sinh (e+f x)\right )}{f}\\ &=-\frac{\sqrt{a \cosh ^2(e+f x)} \text{csch}(e+f x) \text{sech}(e+f x)}{f}+\frac{\sqrt{a \cosh ^2(e+f x)} \tanh (e+f x)}{f}\\ \end{align*}
Mathematica [A] time = 0.0754151, size = 35, normalized size = 0.62 \[ -\frac{\tanh (e+f x) \left (\text{csch}^2(e+f x)-1\right ) \sqrt{a \cosh ^2(e+f x)}}{f} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.085, size = 42, normalized size = 0.8 \begin{align*}{\frac{\cosh \left ( fx+e \right ) a \left ( -1+ \left ( \sinh \left ( fx+e \right ) \right ) ^{2} \right ) }{\sinh \left ( fx+e \right ) f}{\frac{1}{\sqrt{a \left ( \cosh \left ( fx+e \right ) \right ) ^{2}}}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] time = 1.73373, size = 169, normalized size = 3.02 \begin{align*} \frac{\sqrt{a} e^{\left (-f x - e\right )}}{f{\left (e^{\left (-2 \, f x - 2 \, e\right )} - 1\right )}} - \frac{2 \, \sqrt{a} e^{\left (-2 \, f x - 2 \, e\right )} - \sqrt{a}}{2 \, f{\left (e^{\left (-f x - e\right )} - e^{\left (-3 \, f x - 3 \, e\right )}\right )}} + \frac{2 \, \sqrt{a} e^{\left (-f x - e\right )} - \sqrt{a} e^{\left (-3 \, f x - 3 \, e\right )}}{2 \, f{\left (e^{\left (-2 \, f x - 2 \, e\right )} - 1\right )}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 1.78849, size = 829, normalized size = 14.8 \begin{align*} \frac{{\left (4 \, \cosh \left (f x + e\right ) e^{\left (f x + e\right )} \sinh \left (f x + e\right )^{3} + e^{\left (f x + e\right )} \sinh \left (f x + e\right )^{4} + 6 \,{\left (\cosh \left (f x + e\right )^{2} - 1\right )} e^{\left (f x + e\right )} \sinh \left (f x + e\right )^{2} + 4 \,{\left (\cosh \left (f x + e\right )^{3} - 3 \, \cosh \left (f x + e\right )\right )} e^{\left (f x + e\right )} \sinh \left (f x + e\right ) +{\left (\cosh \left (f x + e\right )^{4} - 6 \, \cosh \left (f x + e\right )^{2} + 1\right )} e^{\left (f x + e\right )}\right )} \sqrt{a e^{\left (4 \, f x + 4 \, e\right )} + 2 \, a e^{\left (2 \, f x + 2 \, e\right )} + a} e^{\left (-f x - e\right )}}{2 \,{\left (f \cosh \left (f x + e\right )^{3} +{\left (f e^{\left (2 \, f x + 2 \, e\right )} + f\right )} \sinh \left (f x + e\right )^{3} + 3 \,{\left (f \cosh \left (f x + e\right ) e^{\left (2 \, f x + 2 \, e\right )} + f \cosh \left (f x + e\right )\right )} \sinh \left (f x + e\right )^{2} - f \cosh \left (f x + e\right ) +{\left (f \cosh \left (f x + e\right )^{3} - f \cosh \left (f x + e\right )\right )} e^{\left (2 \, f x + 2 \, e\right )} +{\left (3 \, f \cosh \left (f x + e\right )^{2} +{\left (3 \, f \cosh \left (f x + e\right )^{2} - f\right )} e^{\left (2 \, f x + 2 \, e\right )} - f\right )} \sinh \left (f x + e\right )\right )}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \sqrt{a \left (\sinh ^{2}{\left (e + f x \right )} + 1\right )} \coth ^{2}{\left (e + f x \right )}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.29183, size = 77, normalized size = 1.38 \begin{align*} -\frac{\sqrt{a}{\left (\frac{{\left (5 \, e^{\left (2 \, f x + 2 \, e\right )} - 1\right )} e^{\left (-e\right )}}{e^{\left (3 \, f x + 2 \, e\right )} - e^{\left (f x\right )}} - e^{\left (f x + e\right )}\right )}}{2 \, f} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]